home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / Peon / PeonSDK-Win32-1.0.0.exe / {app} / PeonMain / include / PeonDLLHeader.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-11-25  |  1.7 KB  |  55 lines

  1.  
  2. #ifndef __PEONDLLHEADER_H_
  3. #define __PEONDLLHEADER_H_
  4. /*
  5. Peon - Win32 Games Programming Library
  6. Copyright (C) 2002-2005 Erik Yuzwa
  7.  
  8. This library is free software; you can redistribute it and/or
  9. modify it under the terms of the GNU Library General Public
  10. License as published by the Free Software Foundation; either
  11. version 2 of the License, or (at your option) any later version.
  12.  
  13. This library is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16. Library General Public License for more details.
  17.  
  18. You should have received a copy of the GNU Library General Public
  19. License along with this library; if not, write to the Free
  20. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  21.  
  22. Erik Yuzwa
  23. peon AT wazooinc DOT com
  24. */
  25.  
  26.  
  27. // The following ifdef block is the standard way of creating macros which make exporting 
  28. // from a DLL simpler. All files within this DLL are compiled with the PEONMAIN_EXPORTS
  29. // symbol defined on the command line. this symbol should not be defined on any project
  30. // that uses this DLL. This way any other project whose source files include this file see 
  31. // PEONMAIN_API functions as being imported from a DLL, whereas this DLL sees symbols
  32. // defined with this macro as being exported.
  33. //
  34. // In practical terms you just put the PEONMAIN_EXPORTS declaration on any object
  35. // that you want to be able to call from your application.
  36. //
  37. #ifdef PEONMAIN_EXPORTS
  38. #define PEONMAIN_API __declspec(dllexport)
  39. #else
  40. #define PEONMAIN_API __declspec(dllimport)
  41. #endif
  42.  
  43.  
  44.  
  45. #endif
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.